<?php 
global $dir_tpl, $tb_fix, $temp, $anyDB;  
$sql = "select * from ".$tb_fix."_news_post order by sid desc limit 0,10";
$q = $anyDB->query($sql);
$arr = $anyDB->getAll($q);
foreach ($arr as $key => $value){
    $arr[$key]['ngaythang']= date('d/m/Y-h:i:s', $value['time']);
    $arr[$key]['title_conver'] = convertText($value['title']);  
    $arr[$key]['title_cut'] = subCutString($value['content_desc'],20);
   
}
$temp->assign("rows",$arr);   
$temp->assign( 'base_tpl', "".$dir_tpl."" );         
$temp->display("$dir_tpl/blocks/home_slidelichkhoihanh/index.mct"); 
?> 
